const { wrap } = require('./public')
const express = require('express');
const router = express.Router();
const UserController = require('../controllers/user');

// 组装路由
router.post('/register', wrap(UserController.register));
router.post('/login', wrap(UserController.login));
router.post('/cancel',  wrap(UserController.cancel));
router.get('/info', wrap(UserController.info));
router.post('/edit', wrap(UserController.edit));
module.exports = router;
